package com.vf.admin.client.controller.vivo.controller;

import com.alibaba.fastjson.JSONObject;
import com.vf.admin.client.common.ClientBaseController;
import com.vf.admin.client.controller.vivo.service.VivoPushService;
import com.vf.admin.common.entity.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


import java.io.IOException;



/**
 * <p>Title : </p>
 * <p>Description : </p>
 * <p>DevelopTools : IDEA</p>
 * <p>DevelopSystem : Windows11</p>
 *
 * @Author : zxw
 * @Date 2023/8/22 19:59
 */
@RestController
@RequestMapping("/app/vivo")
public class VivoController {


    @Autowired
    private VivoPushService vivoPushService;


    @RequestMapping(value = "/push")
    public JSONObject push(String userId, String cvType,String payAmount) throws IOException {

        JSONObject body = vivoPushService.sendInfoMsg(userId, cvType,payAmount);
        System.out.println(body);
        return body;
    }
}
